<?php
/* @var $this GzController */
/* @var $model Gz */
/* @var $form CActiveForm */
?>

<div class="form">

<?php  $form=$this->beginWidget('CActiveForm', array(
        'id'=>'registration-form',
         'enableAjaxValidation'=>true,
             'htmlOptions' => array('enctype' => 'multipart/form-data'),
        )); 
?>
    <div class="row">
		<?php echo $form->labelEx($model,'year'); ?>
		<?php echo $form->textField($model,'year'); ?>
		<?php echo $form->error($model,'year'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'month'); ?>
		<?php echo $form->textField($model,'month'); ?>
		<?php echo $form->error($model,'month'); ?>
	</div>
    
    <div>
        <?php echo '工资CSV文件'; ?>
        <?php echo $form->fileField($model,'tmps1'); ?>
        <?php echo $form->error($model, 'tmps1'); ?>
    </div>
    <hr/>
        <?php  echo CHtml::submitButton('上传工资CSV',array("class"=>"")); ?>
        <?php echo $form->errorSummary($model); ?>
    </div>

      <?php  $this->endWidget(); ?>

</div><!-- form -->